//
//  CamUtility.h
//  CamH
//
//  Created by xqiu on 12-8-24.
//  Copyright (c) 2012年 ghu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <AVFoundation/AVCaptureVideoPreviewLayer.h>

@interface CamUtility : NSObject

+ (AVCaptureConnection *)connectionWithMediaType:(NSString *)mediaType fromConnections:(NSArray *)connections;
+ (CGPoint)convertToPointOfInterestFromViewCoordinates:(CGPoint)viewCoordinates inframeSize:(CGSize) frameSize VideoPreviewLayer:(AVCaptureVideoPreviewLayer *)previewLayer;
@end
